package com.afinal.intelligencetrash.global;


import com.afinal.intelligencetrash.Model.bean.User;

/**
 * Created by cyy on 17-10-8.
 *
 * 管理APP的全局环境变量
 */

public class GlobalEnvironment {

    private GlobalEnvironment(){}
    public static final String HOST_NAME = "http://116.196.101.77:5000";
    public static final String URL_GET_RT_STATUS = HOST_NAME+"/api";

    public static User currentUser;

    public static void reset(){
        currentUser = null;
    }

    public static boolean haveLogined(){
        if (currentUser == null)
            return false;
        return true;
    }
}
